var popup  = 0;
var dmLogger;
function dmLog(){
    dmLogger=new Array();
}
dmLog.prototype.write = function($txt){ dmLogger.push($txt);   }
dmLog.prototype.close = function(){   
        console.log( dmLogger.join("\n") );
}

function var_dump(ar, isString){
	
     //if(!popup){
//         popup  = window.open();
     //}
     
//    var d = popup.document;
    var d = new dmLog();
    var count = 0;
    if(typeof ar =='string' || isString){
            d.write( count + "::::" + ar );
    }else if(typeof ar =='object'){
        for(var i in ar){
            if(count==1){
                count=0;
            }else{
                count=1;
            }
            d.write( count + "::::" + i + "=" + ar[i] );
        }
    }else{
        d.write("EMPTY_OBJECT");
    }
    d.close();
}

function test(){
    var_dump(stor.data.items[0].data);
}